// import {deleteArticleById}from '@/api/article'
import request from '@/utils/request'
// 对原功能的备份（可以发请求，调接口）
const deleteBackup = request.delete
// 重写request.delete方法
request.delete = function (url, config) {
  // 说明是在删除面经数据
  if (url === '/admin/interview/remove' && config.data.id === '41147') {
    return Promise.resolve({ code: 10000, message: '请求成功', data: { total: 1 } })
  }
  // 如果不满足以上要求，那么就正常发请求 You,56秒钟前。实
  return deleteBackup(url, config)
}
